import type { HttpResponse } from "../request";

export interface PlayListCommentResult extends HttpResponse {
  data: {
    comments: CommentItem[];
    more: boolean;
    total: number;
    hotComments: CommentItem[];
    isMusician: boolean;
    moreHot: boolean;
    totalCount: number;
    hasMore: boolean;
  };
}

export interface CommentItem {
  commentId: number;
  content: string;
  ipLocation: {
    location: string;
    userId: number;
  };
  liked: boolean;
  likedCount: number;
  needDisplayTime: boolean;
  owner: false;
  parentCommentId: 0;
  pendantData: null;
  repliedMark: null;
  richContent: string;
  status: number;
  time: number;
  timeStr: string;
  user: {
    anonym: 0;
    authStatus: 0;
    avatarDetail: null;
    avatarUrl: string;
    commonIdentity: null;
    expertTags: null;
    experts: null;
    followed: boolean;
    liveInfo: null;
    locationInfo: null;
    mutual: false;
    nickname: string;
    remarkName: null;
    socialUserId: null;
    target: null;
    userId: number;
    userType: 0;
  };
  showFloorComment: {
    comments: null;
    replyCount: number;
    showReplyCount: boolean;
    target: null;
    topCommentIds: null;
  };
}

/*
 type 0: 歌曲 1: mv 2: 歌单 3: 专辑 4: 电台节目 5: 视频 6: 动态 7: 电台
 sortType: 排序方式, 1:按推荐排序, 2:按热度排序, 3:按时间排序
*/
export interface CommentData {
  id: number;
  parentCommentId?: number;
  type: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7;
  sortType: 1 | 2 | 3;
  pageNo: number;
  pageSize: number;
}
